package com.koron.order.common.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.common.bean.po.OrderExecutePart;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (OrderExecutePart)表服务接口
 *
 * @author zhouj
 * @since 2021-09-03 16:32:16
 */
public interface OrderExecutePartService extends CommonService {

    int insert(SessionFactory factory, OrderExecutePart orderExecutePart);

    int update(SessionFactory factory, OrderExecutePart orderExecutePart);

    int deleteById(SessionFactory factory, String id);

    OrderExecutePart queryById(SessionFactory factory, String id);

    PageInfo queryList(SessionFactory factory, OrderExecutePart orderExecutePart, BaseQueryBean pageBean);

    int insertBatch(SessionFactory factory, List<OrderExecutePart> orderExecutePartList);

    int deleteByOrderId(SessionFactory factory, String orderId);

    int deleteByOrderExecuteId(SessionFactory factory, String executeId);

    int deleteOrderExecutePart(SessionFactory factory, String orderId, String executeId);

}
